From c7ce4b6b3d39b18902ec8b5b5ef13b8403836392 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Thu, 4 Oct 2012 09:06:01 +0200 Subject: [PATCH] quartz: Actually use the window background PATTERN color Before we used a window's background color, which resulted in corrupted display in some cases, presumably because we didn't reset the active pattern. This patch seems to eliminate the observed corruption. (cherry picked from commit 0e42cf81f1dad319489e447c6c4e640bed2ab915) --- gdk/quartz/GdkQuartzView.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c index 4955347710..0b59119f2b 100644 --- a/gdk/quartz/GdkQuartzView.c +++ b/gdk/quartz/GdkQuartzView.c @@ -92,7 +92,7 @@ */ [NSGraphicsContext saveGraphicsState]; - [[[self window] backgroundColor] setFill]; + [[NSColor windowBackgroundColor] setFill]; [NSBezierPath fillRect:rect]; [NSGraphicsContext restoreGraphicsState]; -- 2.30.2